package com.ruoyi.education.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.education.mapper.IndicatorMapper;
import com.ruoyi.education.domain.Indicator;
import com.ruoyi.education.service.IIndicatorService;

/**
 * 指标信息Service业务层处理
 * 
 * @author yxy
 * @date 2024-10-19
 */
@Service
public class IndicatorServiceImpl implements IIndicatorService 
{
    @Autowired
    private IndicatorMapper indicatorMapper;

    /**
     * 查询指标信息
     * 
     * @param indicatorId 指标信息主键
     * @return 指标信息
     */
    @Override
    public Indicator selectIndicatorByIndicatorId(Long indicatorId)
    {
        return indicatorMapper.selectIndicatorByIndicatorId(indicatorId);
    }

    /**
     * 查询指标信息列表
     * 
     * @param indicator 指标信息
     * @return 指标信息
     */
    @Override
    public List<Indicator> selectIndicatorList(Indicator indicator)
    {
        return indicatorMapper.selectIndicatorList(indicator);
    }

    /**
     * 新增指标信息
     * 
     * @param indicator 指标信息
     * @return 结果
     */
    @Override
    public int insertIndicator(Indicator indicator)
    {
        return indicatorMapper.insertIndicator(indicator);
    }

    /**
     * 修改指标信息
     * 
     * @param indicator 指标信息
     * @return 结果
     */
    @Override
    public int updateIndicator(Indicator indicator)
    {
        return indicatorMapper.updateIndicator(indicator);
    }

    /**
     * 批量删除指标信息
     * 
     * @param indicatorIds 需要删除的指标信息主键
     * @return 结果
     */
    @Override
    public int deleteIndicatorByIndicatorIds(Long[] indicatorIds)
    {
        return indicatorMapper.deleteIndicatorByIndicatorIds(indicatorIds);
    }

    /**
     * 删除指标信息信息
     * 
     * @param indicatorId 指标信息主键
     * @return 结果
     */
    @Override
    public int deleteIndicatorByIndicatorId(Long indicatorId)
    {
        return indicatorMapper.deleteIndicatorByIndicatorId(indicatorId);
    }
}
